<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScthtbtitulosaCreateDlg" widgetVar="ScthtbtitulosaCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateScthtbtitulosaTitle}">

            <h:form id="ScthtbtitulosaCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{scthtbtitulosaController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateScthtbtitulosaLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{scthtbtitulosaController.selected.nombre}" title="#{myBundle.CreateScthtbtitulosaTitle_nombre}" required="true" requiredMessage="#{myBundle.CreateScthtbtitulosaRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbtitulosaLabel_registrosenescyt}" for="registrosenescyt" />
                        <p:inputText id="registrosenescyt" value="#{scthtbtitulosaController.selected.registrosenescyt}" title="#{myBundle.CreateScthtbtitulosaTitle_registrosenescyt}" required="true" requiredMessage="#{myBundle.CreateScthtbtitulosaRequiredMessage_registrosenescyt}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbtitulosaLabel_nombrearchivo}" for="nombrearchivo" />
                        <p:inputText id="nombrearchivo" value="#{scthtbtitulosaController.selected.nombrearchivo}" title="#{myBundle.CreateScthtbtitulosaTitle_nombrearchivo}" required="true" requiredMessage="#{myBundle.CreateScthtbtitulosaRequiredMessage_nombrearchivo}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbtitulosaLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scthtbtitulosaController.selected.observaciones}" title="#{myBundle.CreateScthtbtitulosaTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.CreateScthtbtitulosaLabel_scthtbnivacadeid}" for="scthtbnivacadeid" />
                        <p:selectOneMenu id="scthtbnivacadeid" value="#{scthtbtitulosaController.selected.scthtbnivacadeid}" required="true" requiredMessage="#{myBundle.EditScthtbtitulosaRequiredMessage_scthtbnivacadeid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbnivacadeController.items}"
                                           var="scthtbnivacadeidItem"
                                           itemValue="#{scthtbnivacadeidItem}"
                                           itemLabel="#{scthtbnivacadeidItem.scthtbnivacadeid.toString()}"
                                           />
                            <f:converter binding="#{scthtbnivacadeConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateScthtbtitulosaLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <p:selectOneMenu id="scthtbdatosgenid" value="#{scthtbtitulosaController.selected.scthtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditScthtbtitulosaRequiredMessage_scthtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="scthtbdatosgenidItem"
                                           itemValue="#{scthtbdatosgenidItem}"
                                           itemLabel="#{scthtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scthtbtitulosaController.saveNew}" value="#{myBundle.Save}" update="display,:ScthtbtitulosaListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScthtbtitulosaCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScthtbtitulosaCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
